package com.example.musictutor.adapters;

import com.example.musictutor.fragments.LevelSelectFrags.LevelOneFragment;
import com.example.musictutor.fragments.LevelSelectFrags.LevelThreeFragment;
import com.example.musictutor.fragments.LevelSelectFrags.LevelTwoFragment;
import com.example.musictutor.fragments.TyroneFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
/**
 * Created by ironhulk on 2014/05/11.
 */
public class LevelSelectPageAdapter extends FragmentPagerAdapter {


    public LevelSelectPageAdapter(FragmentManager fragmentManager) {
        super(fragmentManager);
    }

    @Override
    public Fragment getItem(int i) {
        switch (i) {
            case 0:
                return new LevelOneFragment();
            case 1:
                return new LevelTwoFragment();
            case 2:
                return new LevelThreeFragment();
        }
        return null;
    }

    @Override
    public int getCount() {
        return 3;
    }
}
